﻿using A.M.ETO;
using L.M.System.Application.IServices;
using L.M.System.Domain.Entity;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace L.M.System.Read.API.Controllers
{
    /// <summary>
    /// 权限基础信息
    /// </summary>
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class Authority_listReadController : ControllerBase
    {
        private readonly IAuthority_listServices authority_ListServices;

        public Authority_listReadController(IAuthority_listServices authority_ListServices = null)
        {
            this.authority_ListServices = authority_ListServices;
        }

        /// <summary>
        /// 返回顶部导航信息
        /// </summary>
        /// <param name="uId">用户信息</param>
        /// <returns>顶部导航信息</returns>
        [HttpGet] 
        public async Task<IActionResult> GetAuthority_listShowinfor(string? uId)
        {
            var list = await authority_ListServices.GetAuthority_listShowinfor(uId);
            return Ok(list);

        }
    }
}
